#pragma once

#include "ImageShow.h"
#include "PanelBase.h"
#include "Ui_OptionPanel_ShapeDetection.h"
#include "IplImageToQImage.h"
#include "cv.h"
#include "SquareFinder.h"
namespace OCEANUI
{
	class CPanel_ShapeDetection: 
		public CPanelBase,
		public Ui_OptionPanel_ShapeDetection 
	{
		Q_OBJECT
	public:
		explicit CPanel_ShapeDetection(QWidget* parent);
		bool init();
		void setImage(IplImage* image)
		{
			pSquareFinder->setImage(image);
			currentImage_ = image;
		}
			
		
	public slots:
			void OnValueChanged(int value);
			void OnTest();

	public:
		~CPanel_ShapeDetection(void);
	private:
		CSquareFinder* pSquareFinder;
		CSimpleImageWindow imageWindow;

	};
}